<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<artifactId>org.elwiki.editor</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<packaging>eclipse-plugin</packaging>
	<name>[bundle] ElWiki Editor</name>

	<parent>
		<groupId>erwiki</groupId>
		<artifactId>bundles_widgets</artifactId>
		<version>1.0.0</version>
		<relativePath>..</relativePath>
	</parent>

	<build>
		<plugins>
			<!-- wro4j Web Resource Optimizer for Java (http://http://code.google.com/p/wro4j/)
				Merge and compress CSS and JS files using the WRO4J. - use UglifyJS for JS
				compression - use Less as advanced CSS preprocessor -->
			<plugin>
				<groupId>ro.isdc.wro4j</groupId>
				<artifactId>wro4j-maven-plugin</artifactId>
				<version>${wro4j.version}</version>
				<executions>
					<execution>
						<id>building-haddock</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<wroFile>${project.basedir}/main/config/wro/wro-haddock.xml</wroFile>
							<targetGroups>haddock</targetGroups>
						</configuration>
					</execution>
					<execution>
						<id>building-haddock-wysiwyg</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<wroFile>${project.basedir}/main/config/wro/wro-haddock.xml</wroFile>
							<targetGroups>haddock-wysiwyg</targetGroups>
						</configuration>
					</execution>
				</executions>
				<configuration>
					<destinationFolder>${project.basedir}/resources/templates/haddock/</destinationFolder>
					<contextFolder>${project.basedir}/main/context/</contextFolder>
					<extraConfigFile>${project.basedir}/main/config/wro/wro.properties</extraConfigFile>
					<minimize>${minimize}</minimize>
					<ignoreMissingResources>false</ignoreMissingResources>
					<parallelProcessing>false</parallelProcessing> <!-- ==true: вызывает ошибку сборки -->
					<incrementalBuildEnabled>true</incrementalBuildEnabled>
					<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>${maven.resources.plugin.version}</version>
				<executions>
					<execution>
						<id>copy-font-resources</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>resources</goal>
						</goals>
						<configuration>
							<outputDirectory>${project.basedir}/resources/templates/haddock/fonts</outputDirectory>
							<resources>
								<resource>
									<directory>${project.basedir}/main/context/styles/haddock/fontjspwiki/FontJspwiki/fonts/</directory>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>

		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.eclipse.tycho</groupId>
										<artifactId>
											tycho-packaging-plugin
										</artifactId>
										<versionRange>
											[4.0.4,)
										</versionRange>
										<goals>
											<goal>validate-id</goal>
											<goal>build-qualifier</goal>
											<goal>validate-version</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.eclipse.tycho</groupId>
										<artifactId>
											tycho-compiler-plugin
										</artifactId>
										<versionRange>
											[4.0.4,)
										</versionRange>
										<goals>
											<goal>compile</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>
